public class Test
{
	public static void main(String[] args)
	{
		Stack<Object> s = new Stack<Object>();
		s.push(1.0);
		s.push(2);
		s.push("apple");
		s.push('z');
		s.push(3);
		
		s.pop();
		while(!s.isEmpty())
		{
			System.out.println(s.pop2());
		}
		s.pop();
		s.pop2();
	}
}
